/**
 * 字典模块的请求文件
 * 
 *  **/

import request from '../utils/request';

//添加字典集
export const InsertDicKey = query => {
    return request({
        url: '/key',
        method: 'post',
        data: query
    });
};
//修改字典集
export const UpdateDicKey=query=>{
    return requert({
        url:'/key',
        method:'put',
        data:query
    });
};
//逻辑删除字典集
export const SoftDeleteDicKey=query=>{
    return requert({
        url:'/key',
        method:'delete',
        params:query
    })
};
//查询字典集
export const SearchDicKey=query=>{
    return request({
        url:'/key',
        method:'get',
        params:query
    })
};
//添加字典项
export const InsertDicValue=query=>{
    return request({
        url:'/value',
        method:'post',
        data:query
    }) 
};
//修改字典项
export const UpdateDicValue=query=>{
    return request({
        url:'/value',
        method:'put',
        data:query
    })
};
//逻辑删除字典项
export const SoftDeleteDicValue=query=>{
    return requert({
        url:'/value',
        method:'delete',
        params:query
    })
};
//查询字典项
export const SearchDicValue=query=>{
    return request({
        url:'/value',
        method:'get',
        params:query
    })
};